package pers.lmd.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName menu
 */
@TableName(value = "menu")
@Data
public class Menu implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 父菜单id，一级为0
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 菜单名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 权限
     */
    @TableField(value = "permission")
    private String permission;

    /**
     * 菜单类型
     */
    @TableField(value = "type")
    private String type;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 角色 id
     */
    @TableField(value = "rid")
    private Integer rid;

    /**
     * 组件名 id
     */
    @TableField(value = "component")
    private String component;

}